package main

import "github.com/gin-gonic/gin"

func main() {

	// 默认启动方式，包含 Logger、Recovery 中间件
	router := gin.Default()

	v1 := router.Group("/v1")
	{
		v1.GET("/login", Group)
		v1.GET("/submit", Group)
	}

	v2 := router.Group("/v2")
	{
		v2.GET("/login", Group)
		v2.GET("/submit", Group)
	}

	router.Run()
}

func Group(c *gin.Context)  {
	c.String(200, c.Request.RequestURI)
}
